#include "mainwindow.h"

#include <QApplication>
#include <QTranslator>

int main(int argc, char *argv[])
{
    Q_INIT_RESOURCE(i18n);

    QApplication a(argc, argv);

    QTranslator cnTranslator;
    if (cnTranslator.load(QLocale::system(), "i18n", "_", ":/translations"))
        a.installTranslator(&cnTranslator);

    MainWindow w;
    w.show();
    return a.exec();
}
